<extend name="Public/base"/>
<block name="body">
    <div class="admin-main-container">

        <script type="text/javascript" src="/Public/static/uploadify/jquery.uploadify.min.js"></script>
        <div class="main-title cf">
            <h2>修改轮播图</h2>
        </div>
        <div class="with-padding">
            <form action="{:addons_url('Slide://Slide/edit')}" class="form-horizontal" method="post">
                <div class="form-item cf">
                    <label class="item-label">
                        轮播图的名称            </label>
                    <div class="controls">
                        <input type="text" name="c[name]" class="form-control text form-input-width" value="<?php echo $list['name'];?>">
                    </div>
                </div><div class="form-item cf">
                <label class="item-label">
                    轮播图的最大宽度(我们会以比例相应缩放)            </label>
                <div class="controls">
                    <input type="text" name="c[maxwidth]" class="form-control text form-input-width" value="<?php echo $list['maxwidth'];?>">
                </div>
            </div>


                <div class="form-item cf">
                    <label class="item-label">
                        轮播图的最大高度(我们会以比例相应缩放)            </label>
                    <div class="controls">
                        <input type="text" name="c[maxheight]" class="form-control text form-input-width" value="<?php echo $list['maxheight'];?>">
                    </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label">
                        轮播图切换时间            </label>
                    <div class="controls">
                        <input type="text" name="c[timeout]" class="form-control text form-input-width" value="<?php echo $list['timeout'];?>">
                    </div>
                </div>

                <div class="form-item cf">
                <label class="item-label">
                    是否立即启用            </label>
                <div class="controls">
                    <label class="radio-inline">
                        <input type="radio" name="c[status]" value="0"  <?php if($list['status']==0) echo 'checked=""'; ?>)>关闭                </label><label class="radio-inline">
                    <input type="radio" name="c[status]" value="1" <?php if($list['status']==1) echo 'checked=""'; ?>>启用                </label>        </div>
            </div>

                <div class="form-item cf">
                    <label class="item-label">
                        是否随机显示图片            </label>
                    <div class="controls">
                        <label class="radio-inline">
                            <input type="radio" name="c[random]" value="false" <?php if($list['random']=='false') echo 'checked=""'; ?>>关闭                </label><label class="radio-inline">
                        <input type="radio" name="c[random]" value="true" <?php if($list['random']=='true') echo 'checked=""'; ?>>启用                </label>        </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label">
                        是否自动播放           </label>
                    <div class="controls">
                        <label class="radio-inline">
                            <input type="radio" name="c[auto]" value="false" <?php if($list['auto']=='false') echo 'checked=""'; ?>>关闭                </label><label class="radio-inline">
                        <input type="radio" name="c[auto]" value="true" <?php if($list['auto']=='true') echo 'checked=""'; ?>>自动                </label>        </div>
                </div>

                <div class="form-item cf">
                    <label class="item-label">
                        是否显示左右导航            </label>
                    <div class="controls">
                        <label class="radio-inline">
                            <input type="radio" name="c[nav]" value="false" <?php if($list['nav']=='false') echo 'checked=""'; ?>>关闭                </label><label class="radio-inline">
                        <input type="radio" name="c[nav]" value="true" <?php if($list['nav']=='true') echo 'checked=""'; ?>>启用                </label>        </div>
                    <input type="hidden" value="<?php echo $list['id'];?>" name="id">
                </div>

                <div style="margin-top: 10px">

                    <button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
                    <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                </div>
            </form></div>


    </div></block>